﻿/// <summary>
/// 功能：
/// 作者：chao.jiang
/// 日期：2012/9/29 11:48:09
/// 备注：
/// 修改：
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;

namespace Phoenix.Service.Model
{
    public class PagerModel
    {
        private string url;
        /// <summary>
        /// URL地址
        /// </summary>
        public virtual string URL
        {
            get
            {
                return url;
            }
            set
            {
                url = value;
                if (url.IndexOf('?') > 0)
                {
                    url += "&";
                }
                else if (url.IndexOf('?') < 0)
                {
                    url += "?";
                }
            }
        }

        /// <summary>
        /// Get请求目标From
        /// </summary>
        public virtual string GetForm
        {
            get;
            set;
        }


        /// <summary>
        /// 记录总数
        /// </summary>
        public virtual int RecordQty
        {
            get;
            set;
        }

        /// <summary>
        /// 页数
        /// </summary>
        public virtual int PageQty
        {
            get;
            set;
        }

        /// <summary>
        /// 一页显示多少条记录
        /// </summary>
        public virtual int PageSize
        {
            get;
            set;
        }

        /// <summary>
        /// 上一页
        /// </summary>
        public virtual int PreviousPageIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 当前页
        /// </summary>
        public virtual int PageIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 下一页
        /// </summary>
        public virtual int NextPageIdex
        {
            get;
            set;
        }

        /// <summary>
        /// 最后一页
        /// </summary>
        public virtual int LastPageIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 第一页
        /// </summary>
        public virtual int FirstPageIdex
        {
            get;
            set;
        }

        public virtual int BeginPageIndex
        {
            get;
            set;
        }

        public virtual int EndPageIndex
        {
            get;
            set;
        }

        /// <summary>
        /// 针对页面总数的翻页
        /// </summary>
        public virtual PagerModel PageQtyPagerModel
        {
            get;
            set;
        }
    }

}
